<?php

namespace App\Admin\Controllers;

use App\Http\Controllers\Controller;

use Dcat\Admin\Layout\Column;
use Dcat\Admin\Layout\Content;
use Dcat\Admin\Layout\Row;
use App\Admin\Metrics\Examples\Title;
class HomeController extends Controller
{
    public function index(Content $content)
    {
        return $content
            ->header('管理中心')
            ->description('管理中心...')
            ->body(function (Row $row) {
                $row->column(12, function (Column $column) {
                    $column->row(Title::title());
                });
            });
    }
}
